#基础镜像
#FROM java:8
FROM openjdk:8-jre-alpine

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone

#把你的项目jar包引入到容器的root目录下
COPY *.jar  /root/app.jar

CMD ["--server.port=8080"]

#项目的启动方式
#ENTRYPOINT ["java","-Xmx400m","-Xms400m","-Xmn150m","-Xss1024k","-jar","/root/app.jar"]
ENTRYPOINT ["java","-jar","/root/app.jar"]
